<html>
<head>
<title>new</title>
<style type="text/css">
<!--
/*
    This style sheet is borrowed from the NetLogo User Manual.  However, some of the units were
    changed from em to px because Java's StyleSheet support is limited for relative units such as
    em and % (this will supposively improve with newer versions of the VM) - jrn 7/21/05
    BE VERY VERY CAREFUL when you alter this style sheet -- it's possible to put in
    innocent-looking things that work on some VM's but cause Java exceptions on other for example
    we were using "font-size: 125%" but it caused Java exceptions on Java 1.5 on Windows - ST
    8/25/05
*/
:link { color: rgb(110,0,110); }
:visited { color: rgb(110,0,110); }
body {
    margin-left: 5px;
    font-family: arial, sans-serif;
    background: white;
    font-size: 12pt
}
h1 {
    color: white;
    background: rgb(45,0,45);
    font-size: 18pt;
    margin-bottom: 4px;
    padding-left: 6px;
    padding-right: 6px;
    padding-top: 6px;
    padding-bottom: 6px;
}
h2 {
    margin-top: 15px;
    margin-left: 6px;
    margin-bottom: 4px;
    background: rgb(166,172,255);
    font-size: 15pt;
    padding-left: 6px;
    padding-right: 6px;
    padding-top: 6px;
    padding-bottom: 6px;
}
h3 {
    margin-top: 15px;
    margin-left: 13px;
    margin-bottom: 4px;
    background: rgb(175,175,175);
    font-size: 12pt;
    padding: 0.2em;
    padding-left: 6px;
    padding-right: 6px;
    padding-top: 6px;
    padding-bottom: 6px;
}
h4 {
    margin-top: 15px;
    margin-bottom: 5px;
    margin-left: 15px;
    font-size: 12pt;
}
h5 {
    margin-top: 15px;
    margin-left: 15px;
    font-size: 12pt;
}
h6 {
    margin-top: 15px;
    margin-left: 15px;
    font-size: 12pt;
}
p {
    margin-left: 15px;
    margin-bottom: 3px;
}
pre {
    margin-left: 13px;
    background: rgb(225,225,225);
    font-family: monospace;
    font-size: 12pt;
    padding-left: 10px;
    padding-right: 3px;
    padding-top: 7px;
    padding-bottom: 7px;
    margin-top:9px;
    margin-bottom:0px;
}
code {
    font-family: monospace;
    font-size: 12pt;
}
blockquote {
    border: solid;
    border-style: solid;
    border-width: thin;
    border-color: black;
    background: rgb(250,250,220);
    padding-top: 0px;
    padding-bottom: 7px;
    margin-top: 7px;
    margin-bottom:1px;
}
ol {
   margin-bottom:1px;
}
ul {
   margin-bottom:1px;
}

-->
</style>
</head>
<body>

<p>This page was automatically generated by NetLogo 5.0.4.</p>

<p>The applet requires Java 5 or higher.
Java must be enabled in your browser settings.
Mac users must have Mac OS X 10.4 or higher.
Windows and Linux users may obtain the latest Java from
<a href="http://www.java.com/">Oracle's Java site</a>.</p>

<p><hr>

<p><font size="-1">In order for this to work, this file, your model file
(new.nlogo), and the files NetLogoLite.jar and NetLogoLite.jar.pack.gz
must all be in the same directory.  (You can copy NetLogoLite.jar and NetLogoLite.jar.pack.gz
from the directory where you installed NetLogo.)</font></p>

<p><font size="-1">The applet will also need access to the 
gis and gis extensions.
Copy the entire directory for each required extension into the same
directory as the applet.</font></p>

<p><font size="-1">On some systems, you can test the applet locally on your computer
before uploading it to a web server.  It doesn't work on all systems,
though, so if it doesn't work from your hard drive, please try
uploading it to a web server.</font></p>

<p><font size="-1">You don't need to include everything in this file in your page.
If you want, you can just take the HTML code beginning with
&lt;applet&gt; and ending with &lt;/applet&gt;, and paste it into any HTML
file you want.  It's even OK to put multiple &lt;applet&gt; tags
on a single page.</font></p>

<p><font size="-1">If the NetLogoLite files and your model are in different
directories, you must modify the archive= and value= lines
in the HTML code to point to their actual locations.
(For example, if you have multiple applets in different
directories on the same web server, you may want to put
a single copy of the NetLogoLite files in one central place and
change the archive= lines of all the HTML files to point
to that one central copy.  This will save disk space for
you and download time for your users.)</font></p>

<p>
<applet code="org.nlogo.lite.Applet"
        archive="NetLogoLite.jar,gis/gis.jar,gis/jai_codec-1.1.3.jar,gis/jai_core-1.1.3.jar,gis/ngunits-1.0.jar,gis/jts-1.9.jar,gis/commons-codec-1.3.jar,gis/commons-logging-1.1.jar,gis/commons-httpclient-3.0.1.jar,gis/gis.jar,gis/jai_codec-1.1.3.jar,gis/jai_core-1.1.3.jar,gis/ngunits-1.0.jar,gis/jts-1.9.jar,gis/commons-codec-1.3.jar,gis/commons-logging-1.1.jar,gis/commons-httpclient-3.0.1.jar"
        width="675" height="480">
  <param name="DefaultModel"
         value="new.nlogo">
  <param name="java_arguments"
         value="-Djnlp.packEnabled=true">
</applet>
</p>

<p>powered by
<a target="_blank" href="http://ccl.northwestern.edu/netlogo/">NetLogo</a></p>

<p>view/download model file:
<a href="new.nlogo">new.nlogo</a></p>
<h2>WHAT IS IT?</h2><p>(a general understanding of what the model is trying to show or explain)</p><h2>HOW IT WORKS</h2><p>(what rules the agents use to create the overall behavior of the model)</p><h2>HOW TO USE IT</h2><p>(how to use the model, including a description of each of the items in the Interface tab)</p><h2>THINGS TO NOTICE</h2><p>(suggested things for the user to notice while running the model)</p><h2>THINGS TO TRY</h2><p>(suggested things for the user to try to do (move sliders, switches, etc.) with the model)</p><h2>EXTENDING THE MODEL</h2><p>(suggested things to add or change in the Code tab to make the model more complicated, detailed, accurate, etc.)</p><h2>NETLOGO FEATURES</h2><p>(interesting or unusual features of NetLogo that the model uses, particularly in the Code tab; or where workarounds were needed for missing features)</p><h2>RELATED MODELS</h2><p>(models in the NetLogo Models Library and elsewhere which are of related interest)</p><h2>CREDITS AND REFERENCES</h2><p>(a reference to the model&rsquo;s URL on the web if it has one, as well as any other necessary credits, citations, and links)</p>

<h1>CODE</h1>
<pre><font color="#007f69">extensions</font><font color="#000000"> [ gis ]
</font><font color="#007f69">globals</font><font color="#000000"> [ point-dataset
          line-dataset
          polygon-dataset]

</font><font color="#007f69">to</font><font color="#000000"> setup
  </font><font color="#0000aa">ca</font><font color="#000000">
  </font><font color="#0000aa">gis:load-coordinate-system</font><font color="#000000"> (</font><font color="#660096">word</font><font color="#000000"> </font><font color="#963700">&quot;data/&quot;</font><font color="#000000"> projection </font><font color="#963700">&quot;.prj&quot;</font><font color="#000000">)
  </font><font color="#0000aa">set</font><font color="#000000"> point-dataset </font><font color="#660096">gis:load-dataset</font><font color="#000000"> </font><font color="#963700">&quot;data/points.shp&quot;</font><font color="#000000">
  </font><font color="#0000aa">set</font><font color="#000000"> line-dataset </font><font color="#660096">gis:load-dataset</font><font color="#000000"> </font><font color="#963700">&quot;data/line.shp&quot;</font><font color="#000000">
  </font><font color="#0000aa">set</font><font color="#000000"> polygon-dataset </font><font color="#660096">gis:load-dataset</font><font color="#000000"> </font><font color="#963700">&quot;data/polygon.shp&quot;</font><font color="#000000">
  </font><font color="#0000aa">gis:set-world-envelope</font><font color="#000000"> (</font><font color="#660096">gis:envelope-union-of</font><font color="#000000">  (</font><font color="#660096">gis:envelope-of</font><font color="#000000"> point-dataset)
                                                 (</font><font color="#660096">gis:envelope-of</font><font color="#000000"> line-dataset)
                                                 (</font><font color="#660096">gis:envelope-of</font><font color="#000000"> polygon-dataset))
</font><font color="#007f69">end</font><font color="#000000">

</font><font color="#007f69">to</font><font color="#000000"> display-point
   </font><font color="#0000aa">foreach</font><font color="#000000"> </font><font color="#660096">gis:feature-list-of</font><font color="#000000"> point-dataset
    [ </font><font color="#0000aa">gis:set-drawing-color</font><font color="#000000"> </font><font color="#660096">scale-color</font><font color="#000000"> </font><font color="#963700">red</font><font color="#000000"> (</font><font color="#660096">gis:property-value</font><font color="#000000"> ? </font><font color="#963700">&quot;osmversion&quot;</font><font color="#000000">) </font><font color="#963700">5000000</font><font color="#000000"> </font><font color="#963700">1000</font><font color="#000000"> 
    </font><font color="#0000aa">gis:fill</font><font color="#000000"> ? </font><font color="#963700">2.0</font><font color="#000000"> ]
</font><font color="#007f69">end</font><font color="#000000">

</font><font color="#007f69">to</font><font color="#000000"> display-line
   </font><font color="#0000aa">foreach</font><font color="#000000"> </font><font color="#660096">gis:feature-list-of</font><font color="#000000"> line-dataset
    [ </font><font color="#0000aa">gis:set-drawing-color</font><font color="#000000"> </font><font color="#963700">blue</font><font color="#000000"> 
      </font><font color="#0000aa">gis:draw</font><font color="#000000"> line-dataset </font><font color="#963700">1</font><font color="#000000">]
</font><font color="#007f69">end</font><font color="#000000">

</font><font color="#007f69">to</font><font color="#000000"> display-polygon
   </font><font color="#0000aa">foreach</font><font color="#000000"> </font><font color="#660096">gis:feature-list-of</font><font color="#000000"> polygon-dataset
    [ </font><font color="#0000aa">gis:set-drawing-color</font><font color="#000000"> </font><font color="#963700">red</font><font color="#000000"> 
      </font><font color="#0000aa">gis:fill</font><font color="#000000"> ? </font><font color="#963700">2.0</font><font color="#000000">  ]
</font><font color="#007f69">end</font>
</pre>

</body>
</html>
